//
//  WDWorkOrderSearchViewModel.h
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/19.
//

#import "TYZBaseViewModel.h"
#import "WDHistorySearchWordsModel.h"
#import "WDArrivalServiceItemModel.h"
#import "WDStationTaskSearchRequest.h" // 获取数据

NS_ASSUME_NONNULL_BEGIN

/// 工单搜索
@interface WDWorkOrderSearchViewModel : TYZBaseViewModel

/// 搜索内容
@property (nonatomic, copy) NSString *searchMsg;

/// 搜索标签
@property (nonatomic, strong) NSMutableArray *markets;

@property (nonatomic, strong) WDStationTaskSearchReqModel *reqModel;


/// 更新搜索关键字
/// @param keyWord keyWord description
- (void)updateWithSearchKeyWord:(NSString *)keyWord;

/// 清空历史记录
- (void)clearHistoryRecord;

/// 请求数据
/// - Parameter completion: completion description
- (void)requestWithTaskSearch:(RequestCompletionBlock)completion;


@end

NS_ASSUME_NONNULL_END
